package com.jfree;

import java.util.ArrayList;
import java.util.DoubleSummaryStatistics;
import java.util.IntSummaryStatistics;
import java.util.List;

public class Mina {
    public static void main(String[] args) {

        List<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        IntSummaryStatistics is = list.stream().mapToInt(v -> v).summaryStatistics();
        System.out.println(is.getAverage());
        System.out.println(is.toString());
    }
}
